package jsyf.oa.facade.wechat.config;


public class WeChatConst {


    /**
     * 正式库地址：http://47.94.193.90/jsyf-oa
     * 测试库地址：http://47.93.160.233/jsyf-oa
     */

    /**
     * 微信开发token类型
     */
    //  滚滚向前-服务号
    public static final int weChat_account_type = 0;
    // 企业号(微信插件-原企业号)
    public static final int weChat_enterprise_type = 2;
    // 企业号通讯录
    public static final int weChat_enterprise_contacts_type = 3;

    /**
     * 部分公司ID
     */
    //  滚滚向前 companyId
    public static final String GGXQ_Company_Id = "201712161613432EAF27DBCCB7D0E6CA";
    //  江苏灜沣 companyId
    public static final String JSYF_Company_Id = "2017121910424ED9AA4F786D5549D72F";
    //  山西沃源 companyId
    public static final String SSWY_Company_Id = "201804031651473CA771C95F5B8A0ACF";
    //  内蒙古辽鞍 companyId
    public static final String NMGLA_Company_Id = "2018041104174574AC1D4939178B2D27";

    /**
     * 企业号应用ID
     */
    public static final String agentId = "1000002";

    /****************** 服务号接口地址START *********************/
    /**
     * 接口地址-获取access_token
     */
    //  获取access_token的接口地址（GET） 限200（次/天）
    public final static String access_token_url = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET";
    /**
     * 接口地址-菜单
     */
    //  菜单-创建（POST） 限100（次/天）
    public static String menu_create_url = "https://api.weixin.qq.com/cgi-bin/menu/create?access_token=ACCESS_TOKEN";
    //  菜单-查询（GET）
    public static String menu_get_url = "https://api.weixin.qq.com/cgi-bin/menu/get?access_token=ACCESS_TOKEN";
    //  菜单-删除（GET）
    public static String menu_delete_url = "https://api.weixin.qq.com/cgi-bin/menu/delete?access_token=ACCESS_TOKEN";
    //  个性化菜单-创建（POST）
    public static String addconditional_url = "https://api.weixin.qq.com/cgi-bin/menu/addconditional?access_token=ACCESS_TOKEN";
    //  个性化菜单-删除（POST）
    public static String delconditional_url = "https://api.weixin.qq.com/cgi-bin/menu/delconditional?access_token=ACCESS_TOKEN";
    /**
     * 接口地址-模板消息
     */
    //  模板短信-设置所选行业
    public static String industry_create_url = "https://api.weixin.qq.com/cgi-bin/template/api_set_industry?access_token=ACCESS_TOKEN";
    //  模板短信-获取设置的行业信息
    public static String industry_get_url = "https://api.weixin.qq.com/cgi-bin/template/get_industry?access_token=ACCESS_TOKEN";
    //  模板短信-获取模板消息id
    public static String api_add_template = "https://api.weixin.qq.com/cgi-bin/template/api_add_template?access_token=ACCESS_TOKEN";
    //  模板消息-获取所有已添加的模板消息列表
    public static String get_all_private_template = "https://api.weixin.qq.com/cgi-bin/template/get_all_private_template?access_token=ACCESS_TOKEN";
    //  模板消息-删除已添加的模板消息列表
    public static String del_private_template = "https://api.weixin.qq.com/cgi-bin/template/del_private_template?access_token=ACCESS_TOKEN";
    //  模板消息-发送模板消息
    public static String send_template = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=ACCESS_TOKEN";
    /**
     * 接口地址-客服消息
     */
    //  客服消息-添加客服账号-POST
    public static String add_customservice = "https://api.weixin.qq.com/customservice/kfaccount/add?access_token=ACCESS_TOKEN";
    //  客服消息-修改客服账号-POST
    public static String update_customservice = "https://api.weixin.qq.com/customservice/kfaccount/update?access_token=ACCESS_TOKEN";
    //  客服消息-删除客服账号-GET
    public static String delete_customservice = "https://api.weixin.qq.com/customservice/kfaccount/del?access_token=ACCESS_TOKEN";
    //  客服消息-设置客服头像-POST/FORM
    public static String uploadheadimg_customservice = "http://api.weixin.qq.com/customservice/kfaccount/uploadheadimg?access_token=ACCESS_TOKEN&kf_account=KFACCOUNT";
    //  客服消息-修改客服账号-GET
    public static String get_customservice = "https://api.weixin.qq.com/cgi-bin/customservice/getkflist?access_token=ACCESS_TOKEN";
    //  客服消息-发送消息-POST
    public static String sendmessage_customservice = "https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=ACCESS_TOKEN";
    //  客服消息-客服输入状态-POST
    public static String typing_customservice = "https://api.weixin.qq.com/cgi-bin/message/custom/typing?access_token=ACCESS_TOKEN";
    /**
     * 接口地址-用户管理
     */
    //  用户管理-GET-根据open_id获取用户信息
    public static String get_user_info = "https://api.weixin.qq.com/cgi-bin/user/info?access_token=ACCESS_TOKEN&openid=OPENID";
    //  用户管理-批量获取用户信息
    public static String get_user_batchget = "https://api.weixin.qq.com/cgi-bin/user/info/batchget?access_token=ACCESS_TOKEN";
    //  用户管理-获取用户列表（接口地址：https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421140840）
    public static String get_user_list = "https://api.weixin.qq.com/cgi-bin/user/get?access_token=ACCESS_TOKEN&next_openid=NEXT_OPENID";
    //  用户管理-获取公众号的黑名单列表（接口地址：https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1471422259_pJMWA）
    public static String get_user_blacklist = "https://api.weixin.qq.com/cgi-bin/tags/members/getblacklist?access_token=ACCESS_TOKEN";
    //  用户管理-拉黑用户
    public static String batch_user2blacklist = "https://api.weixin.qq.com/cgi-bin/tags/members/batchblacklist?access_token=ACCESS_TOKEN";
    //  用户管理-取消拉黑用户
    public static String unbatch_userFromblacklist = "https://api.weixin.qq.com/cgi-bin/tags/members/batchunblacklist?access_token=ACCESS_TOKEN";
    /**
     * 接口地址-数据统计
     */
    //  用户分析-获取用户增减数据（接口地址：https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421141082）
    public static String get_user_summary = "https://api.weixin.qq.com/datacube/getusersummary?access_token=ACCESS_TOKEN";
    //  用户分析-获取累计用户数据
    public static String get_user_cumulate = "https://api.weixin.qq.com/datacube/getusercumulate?access_token=ACCESS_TOKEN";

    //  图文分析-获取图文群发每日数据（getarticlesummary）（接口地址：https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421141084）
    public static String get_articl_summary = "https://api.weixin.qq.com/datacube/getarticlesummary?access_token=ACCESS_TOKEN";
    //  图文分析-获取图文群发总数据（getarticletotal）
    public static String get_articl_total = "https://api.weixin.qq.com/datacube/getarticletotal?access_token=ACCESS_TOKEN";
    //  图文分析-获取图文统计数据（getuserread）
    public static String get_user_read = "https://api.weixin.qq.com/datacube/getuserread?access_token=ACCESS_TOKEN";
    //  图文分析-获取图文统计分时数据（getuserreadhour）
    public static String get_user_readhour = "https://api.weixin.qq.com/datacube/getuserreadhour?access_token=ACCESS_TOKEN";
    //  图文分析-获取图文分享转发数据（getusershare）
    public static String get_user_share = "https://api.weixin.qq.com/datacube/getusershare?access_token=ACCESS_TOKEN";
    //  图文分析-获取图文分享转发分时数据（getusersharehour）
    public static String get_articl_sharehour = "https://api.weixin.qq.com/datacube/getusersharehour?access_token=ACCESS_TOKEN";

    //  消息分析-获取消息发送概况数据（getupstreammsg）（接口地址：https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421141085）
    public static String get_upstreammsg = "https://api.weixin.qq.com/datacube/getupstreammsg?access_token=ACCESS_TOKEN";
    //  消息分析-获取消息分送分时数据（getupstreammsghour）
    public static String get_upstreammsghour = "https://api.weixin.qq.com/datacube/getupstreammsghour?access_token=ACCESS_TOKEN";
    //  消息分析-获取消息发送周数据（getupstreammsgweek）
    public static String get_upstreammsgweek = "https://api.weixin.qq.com/datacube/getupstreammsgweek?access_token=ACCESS_TOKEN";
    //  消息分析-获取消息发送月数据（getupstreammsgmonth）
    public static String get_upstreammsgmonth = "https://api.weixin.qq.com/datacube/getupstreammsgmonth?access_token=ACCESS_TOKEN";
    //  消息分析-获取消息发送分布数据（getupstreammsgdist）
    public static String get_upstreammsgdist = "https://api.weixin.qq.com/datacube/getupstreammsgdist?access_token=ACCESS_TOKEN";
    //  消息分析-获取消息发送分布周数据（getupstreammsgdistweek）
    public static String get_upstreammsgdistweek = "https://api.weixin.qq.com/datacube/getupstreammsgdistweek?access_token=ACCESS_TOKEN";
    //  消息分析-获取消息发送分布月数据（getupstreammsgdistmonth）
    public static String ge_upstreammsgdistmonth = "https://api.weixin.qq.com/datacube/getupstreammsgdistmonth?access_token=ACCESS_TOKEN";

    //  接口分析-获取接口分析数据（getinterfacesummary）
    public static String get_interface_summary = "https://api.weixin.qq.com/datacube/getinterfacesummary?access_token=ACCESS_TOKEN";
    //  接口分析-获取接口分析分时数据（getinterfacesummaryhour）
    public static String get_interface_summaryhour = "https://api.weixin.qq.com/datacube/getinterfacesummaryhour?access_token=ACCESS_TOKEN";
    /**
     * 素材
     */
    //  临时素材-新增临时素材（临时素材保存3天，3天之后midea_id失效）
    public static String upload_media = "https://api.weixin.qq.com/cgi-bin/media/upload?access_token=ACCESS_TOKEN&type=TYPE";
    //  临时素材-获取临时素材
    public static String get_media = "https://api.weixin.qq.com/cgi-bin/media/get?access_token=ACCESS_TOKEN&media_id=MEDIA_ID";

    //  新增永久素材-新增图文永久素材
    public static String add_material_news = "https://api.weixin.qq.com/cgi-bin/material/add_news?access_token=ACCESS_TOKEN";
    //  新增永久素材-上传图文消息内的图片获取URL
    public static String uploadimg_material = "https://api.weixin.qq.com/cgi-bin/media/uploadimg?access_token=ACCESS_TOKEN";
    //  新增永久素材-新增其他类型永久素材
    public static String add_material_otherType = "https://api.weixin.qq.com/cgi-bin/material/add_material?access_token=ACCESS_TOKEN&type=TYPE";

    //  获取永久素材
    public static String get_material = "https://api.weixin.qq.com/cgi-bin/material/get_material?access_token=ACCESS_TOKEN";

    //  删除永久素材
    public static String del_material = "https://api.weixin.qq.com/cgi-bin/material/del_material?access_token=ACCESS_TOKEN";

    //  修改永久素材
    public static String update_material = "https://api.weixin.qq.com/cgi-bin/material/update_news?access_token=ACCESS_TOKEN";

    //  获取素材总数
    public static String get_materialcount = "https://api.weixin.qq.com/cgi-bin/material/get_materialcount?access_token=ACCESS_TOKEN";
    //  获取素材列表
    public static String get_material_list = "https://api.weixin.qq.com/cgi-bin/material/batchget_material?access_token=ACCESS_TOKEN";
    /**
     * 二维码生成
     */
    //  获取二维码ticket-POST
    public static String get_qrcode = "https://api.weixin.qq.com/cgi-bin/qrcode/create?access_token=TOKEN";
    /**
     * 网页授权
     */
    //  通过CODE换TOKEN-GET
    public static String get_oauth2_token_byCode = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";
    //  获取用户基本信息
    public static String get_oauth2_user = "https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID";

    /****************** 服务号接口地址END *********************/


    /****************** 企业号接口地址START *********************/
    //  创建菜单
    public static String create_enterprise_menu = "https://qyapi.weixin.qq.com/cgi-bin/menu/create?access_token=ACCESS_TOKEN&agentid=AGENTID";
    //  获取菜单
    public static String get_enterprise_menu = "https://qyapi.weixin.qq.com/cgi-bin/menu/get?access_token=ACCESS_TOKEN&agentid=AGENTID";
    //  删除菜单
    public static String delete_enterprise_menu = "https://qyapi.weixin.qq.com/cgi-bin/menu/delete?access_token=ACCESS_TOKEN&agentid=AGENTID";
    /****************** 企业号接口地址END *********************/

    /**
     * 接口地址-获取access_token
     */
    //  获取access_token的接口地址（GET） 限200（次/天）
    public final static String wechat_access_token_url = "https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=ID&corpsecret=SECRECT";

    /**
     * 通讯录部门管理
     */
    // 创建部门
    public final static String create_department_url = "https://qyapi.weixin.qq.com/cgi-bin/department/create?access_token=ACCESS_TOKEN";
    // 更新部门
    public final static String update_department_url = "https://qyapi.weixin.qq.com/cgi-bin/department/update?access_token=ACCESS_TOKEN";
    // 删除部门
    public final static String delete_department_url = "https://qyapi.weixin.qq.com/cgi-bin/department/delete?access_token=ACCESS_TOKEN&id=ID";
    // 获取部门列表
    public final static String list_department_url = "https://qyapi.weixin.qq.com/cgi-bin/department/list?access_token=ACCESS_TOKEN&id=ID";


    /**
     * 通讯录成员管理
     */
    //创建成员
    public final static String create_user_url = "https://qyapi.weixin.qq.com/cgi-bin/user/create?access_token=ACCESS_TOKEN";
    //读取成员
    public final static String get_user_url = "https://qyapi.weixin.qq.com/cgi-bin/user/get?access_token=ACCESS_TOKEN&userid=USERID";
    //更新成员
    public final static String update_user_url = "https://qyapi.weixin.qq.com/cgi-bin/user/update?access_token=ACCESS_TOKEN";
    //删除成员
    public final static String delete_user_url = "https://qyapi.weixin.qq.com/cgi-bin/user/delete?access_token=ACCESS_TOKEN&userid=USERID";
    //批量删除成员
    public final static String batchdelete_user_url = "https://qyapi.weixin.qq.com/cgi-bin/user/batchdelete?access_token=ACCESS_TOKEN";
    //获取部门成员
    public final static String simplelist_user_url = "https://qyapi.weixin.qq.com/cgi-bin/user/simplelist?access_token=ACCESS_TOKEN&department_id=DEPARTMENT_ID&fetch_child=FETCH_CHILD";
    //获取部门成员详情
    public final static String list_user_url = "https://qyapi.weixin.qq.com/cgi-bin/user/list?access_token=ACCESS_TOKEN&department_id=DEPARTMENT_ID&fetch_child=FETCH_CHILD";
    //全量覆盖部门
    public final static String batch_replaceparty_url = "https://qyapi.weixin.qq.com/cgi-bin/batch/replaceparty?access_token=ACCESS_TOKEN";
    //全量覆盖成员
    public final static String batch_replaceuser_url = "https://qyapi.weixin.qq.com/cgi-bin/batch/replaceuser?access_token=ACCESS_TOKEN";


    /**
     * 素材管理
     * type （image）、语音（voice）、视频（video），普通文件（file）
     */
    //上传临时素材( media_id在同一企业内应用之间可以共享)3天有效
    public final static String meida_upload_url = "https://qyapi.weixin.qq.com/cgi-bin/media/upload?access_token=ACCESS_TOKEN&type=TYPE";


    /**
     * 接口定义
     * 应用支持推送文本、图片、视频、文件、图文等类型。
     */
    //发送消息
    public final static String send_message_url = "https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token=ACCESS_TOKEN";
}
